package com.bw.entity;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.*;

@Data
public class User {


    private Integer id;
    @NotBlank(message = "用户名不为空！！！")  // 用来校验字符串
    private String name;
    @NotBlank(message = "密码不为空！！！")
    private String password;

    private String salt;



}
